#! /bin/lua

function testfor(arr)
    for i, v in ipairs(arr) do
        print(i, v)
    end
end


name = {"clay", "yjy", "fangzhang"}
testfor(name)
print()
print()

function testfor2(arr)
    for i, v in pairs(arr) do
        print(i, v)
    end
end

name2 = {"clay", "yjy", "fangzhang", name="lili"}
testfor2(name2)

print()
print()
function testfor3()
    for i = 0,100,10 do
        print(i)
    end
end

testfor3()
